<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head>
<!--Converted with LaTeX2HTML 96.1 (Feb 5, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds --><title>Very Easy!!!</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta content="Spade trump" name="description">
<meta content="htmlatex" name="keywords">
<meta content="document" name="resource-type">
<meta content="global" name="distribution"><link href="acm-10523_files/htmlatex.css" rel="STYLESHEET">
<meta content="Microsoft FrontPage 5.0" name="GENERATOR">
<meta name="Microsoft Theme" content="expeditn 011">
</head><body lang="EN" link="#993300" text="#000000" vlink="#666600" alink="#cc3300" background="acm-10523_files/exptextb.html" bgcolor="#ffffff">
<!--mstheme--><font face="Book Antiqua, Times New Roman, Times"><!--mstheme--></font>
<h1 align="center"><!--mstheme--><font face="Book Antiqua, Times New Roman, Times" color="#660033"><font color="#800080"><i>THE SAMS' CONTEST</i></font><!--mstheme--></font></h1>
<!--mstheme--><font face="Book Antiqua, Times New Roman, Times"><!--mstheme--></font>
<h1 align="center"><!--mstheme--><font face="Book Antiqua, Times New Roman, Times" color="#660033"><font color="#008080"><b><span style="font-size: 18pt; font-style: italic;">Problem 4</span></b></font><br clear="all"><!--mstheme--></font></h1>
<!--mstheme--><font face="Book Antiqua, Times New Roman, Times">
</font><center>
<!--mstheme--><font face="Book Antiqua, Times New Roman, Times"></font>
<table bgcolor="#0060f0">
  <tbody>
  <tr>
    <td><!--mstheme--><font face="Book Antiqua, Times New Roman, Times">
    </font><p align="justify"><font face="Book Antiqua, Times New Roman, Times"><b><font size="5" color="#c0ffff"><span style="background-color: rgb(0, 128, 128);">&nbsp;VERY EASY !!!</span></font><span style="background-color: rgb(0, 128, 128);">&nbsp;</span></b><!--mstheme--></font></p></td></tr></tbody></table>
<!--mstheme--><font face="Book Antiqua, Times New Roman, Times"></font></center>
<!--mstheme--><font face="Book Antiqua, Times New Roman, Times"></font>
<h1 align="justify"><!--mstheme--><font face="Book Antiqua, Times New Roman, Times" color="#660033">
<!--mstheme--></font></h1>
<!--mstheme--><font face="Book Antiqua, Times New Roman, Times">
<p align="justify"></p>
<p align="justify"></p>
<p align="justify"></p>
<!--mstheme--></font>
<h2 align="justify"><!--mstheme--><font face="Book Antiqua, Times New Roman, Times" color="#660033"><font color="#008080">BACKGROUND</font><!--mstheme--></font></h2>
<!--mstheme--><font face="Book Antiqua, Times New Roman, Times">
</font><p align="justify"><font face="Book Antiqua, Times New Roman, Times">Most of the times, the students of Computer Science &amp; Engineering of BUET 
deal with bogus, tough and very complex formulae. That is why, sometimes, even 
for a easy problem they think very hard and make the problem much complex to 
solve. But, the team members of the team "<i><b>BUET PESSIMISTIC</b></i>"&nbsp; 
are the only exceptions. Just like the opposite manner, they treat every hard 
problem as easy and so cannot do well in any contest. Today, they try to solve a 
series but fail for treating it as hard. Let them help.</font></p>
<p align="justify">
<!--mstheme--><font face="Book Antiqua, Times New Roman, Times"></font>
</p><h2 align="justify"><!--mstheme--><font face="Book Antiqua, Times New Roman, Times" color="#660033"><font color="#008080"><a name="SECTION0001001000000000000000">Input</a></font><!--mstheme--></font></h2>
<!--mstheme--><font face="Book Antiqua, Times New Roman, Times">
</font><p align="center"><font face="Book Antiqua, Times New Roman, Times">Just try to determine the answer for the following series<br>
<img src="acm-10523_files/p10523.gif" height="100" width="100" border="0"></font></p><p align="justify"><font face="Book Antiqua, Times New Roman, Times">You are given the value of 
<i><b>N </b>and<b> A</b></i> (<i><b>integer, 1&lt;=N&lt;=150&nbsp; &amp;&nbsp; 
integer, 0&lt;=A&lt;=15</b></i>) respectively.</font></p><p align="justify">
<!--mstheme--><font face="Book Antiqua, Times New Roman, Times"></font>
</p><h2 align="justify"><!--mstheme--><font face="Book Antiqua, Times New Roman, Times" color="#660033"><font color="#008080"><a name="SECTION0001002000000000000000">Output</a></font><!--mstheme--></font></h2>
<!--mstheme--><font face="Book Antiqua, Times New Roman, Times">
</font><p align="justify"><font face="Book Antiqua, Times New Roman, Times">For each line of the input, your correct program should output the <i>integer</i> value of 
the sum in separate lines for each pair of values of <b>N</b> &amp; <b>A</b>.</font></p><p align="justify">
</p><p align="justify">
</p><p align="justify">
<!--mstheme--><font face="Book Antiqua, Times New Roman, Times"></font>
</p><h2 align="justify"><!--mstheme--><font face="Book Antiqua, Times New Roman, Times" color="#660033"><font color="#008080"><a name="SECTION0001003000000000000000">Sample 
Input</a></font><!--mstheme--></font></h2>
<!--mstheme--><font face="Book Antiqua, Times New Roman, Times">
</font><p align="justify">
</p><div align="justify">
<font face="Book Antiqua, Times New Roman, Times">  <!--mstheme--></font><pre>3 3
4 4</pre>
  <!--mstheme--><font face="Book Antiqua, Times New Roman, Times">
</font></div>
<p align="justify">
<!--mstheme--><font face="Book Antiqua, Times New Roman, Times"></font>
</p><h2 align="justify"><!--mstheme--><font face="Book Antiqua, Times New Roman, Times" color="#660033"><font color="#008080"><a name="SECTION0001004000000000000000">Sample 
Output</a></font><!--mstheme--></font></h2><!--mstheme--><font face="Book Antiqua, Times New Roman, Times">
</font><div align="justify">
<font face="Book Antiqua, Times New Roman, Times">  <!--mstheme--></font><pre>102
1252
</pre>
  <!--mstheme--><font face="Book Antiqua, Times New Roman, Times">
</font></div>
<!--msthemeseparator--><p align="center"><font face="Book Antiqua, Times New Roman, Times"><img src="acm-10523_files/exphorsa.html"></font></p>

<p align="center"><font face="Book Antiqua, Times New Roman, Times"><font color="#008080"><i><b>Anupam Bhattacharjee ( BUET PESSIMISTIC )</b></i></font></font></p>

<p align="center"><font face="Book Antiqua, Times New Roman, Times"><b>E means exponent, E means error. So try to avoid exponent 
whenever possible.</b></font></p>
<!--mstheme--><font face="Book Antiqua, Times New Roman, Times"></font>
</body></html>